package com.aoxon.cargo.component.n;

import java.util.Random;

import com.aoxon.cargo.bean.Supplier;
import com.baidu.mapapi.map.OverlayItem;
import com.baidu.platform.comapi.basestruct.GeoPoint;

public class CargoOverlayItem extends OverlayItem {

	private Supplier supplier;
	private static Random r = new Random(47);

	public CargoOverlayItem(Supplier supplier) {
		super(new GeoPoint(
				(int) ((23.04 + (((double) r.nextInt(30))) / 5000) * 1E6),
				(int) ((113.4 + (((double) r.nextInt(30))) / 5050) * 1E6)),
				null, null);
		this.supplier = supplier;
	}

	public Supplier getSupplier() {
		return supplier;
	}


}
